package com.lx.user.web;


import com.lx.bilibili.entity.User;
import com.lx.user.biz.impl.SearchServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("search")
public class SearchController {

    @Autowired
    SearchServiceImpl searchService;

    @RequestMapping("getUserById")
    public User getUserById(@RequestParam("id") int id) {
        return searchService.getUserById(id);
    }
}
